export default {
    saveLocalStorageString(key,value){
        window.localStorage.setItem(key,value);
    },
    getLocalString(key){
        return window.localStorage.getItem(key);
    },
    //对象通过json解析和反解析来存入和获取
    saveLocalStorageObject(key,value){
        window.localStorage.setItem(key,JSON.stringify(value));
    },
    getLocalSessionObject(key){
        return JSON.parse(window.localStorage.getItem(key));
    },
    remove(key){
        return window.localStorage.removeItem(key);
    }
}